package com.how2java.tmall.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpSession;

//是否因为没有?@Component
@Component
@FeignClient(value = "ORDERS-SERVICE")//写需要被调用的服务名
public interface OrderFeignService {

    @GetMapping(value = "/order")
    @ResponseBody
    public String orderController();
}
